import { _decorator } from 'cc';
import { Magazine } from './Magazine';
import { Weapon } from './Weapon';
const { ccclass, property } = _decorator;

@ccclass('Gun')
export class Gun extends Weapon {

    Capacity: number = 1; // 最大容量
    HaveMagazine: Magazine[] = [];
    CurMagazine: Magazine = null;

    constructor(type: number, harm: number, coolingTime: number, armorPenetration: number, capacity: number) {
        super(type, harm, coolingTime, armorPenetration);
        this.Capacity = capacity;
    }



}


